#include "usermgr.h"

void UserMgr::setemail(QString email){
    std::lock_guard<std::mutex> lock(m_mtx);
    m_email = email;
}

void UserMgr::setuid(qint64 uid){
    std::lock_guard<std::mutex> lock(m_mtx);
    m_uid = uid;
}

void UserMgr::settoken(QString token)
{
    std::lock_guard<std::mutex> lock(m_mtx);
    m_token = token;
}

QString UserMgr::email(){
    std::lock_guard<std::mutex> lock(m_mtx);
    return m_email;
}

qint64 UserMgr::uid(){
    std::lock_guard<std::mutex> lock(m_mtx);
    return m_uid;
}

QString UserMgr::token()
{
    std::lock_guard<std::mutex> lock(m_mtx);
    return m_token;
}
